import request from '@/utils/request'

// 查询广告位维护列表
export function listAdvent(query) {
  return request({
    url: '/advent/advent/list',
    method: 'get',
    params: query
  })
}

// 查询广告位维护详细
export function getAdvent(id) {
  return request({
    url: '/advent/advent/' + id,
    method: 'get'
  })
}

// 新增广告位维护
export function addAdvent(data) {
  return request({
    url: '/advent/advent',
    method: 'post',
    data: data
  })
}

// 修改广告位维护
export function updateAdvent(data) {
  return request({
    url: '/advent/advent',
    method: 'put',
    data: data
  })
}

// 删除广告位维护
export function delAdvent(id) {
  return request({
    url: '/advent/advent/' + id,
    method: 'delete'
  })
}

// 导出广告位维护
export function exportAdvent(query) {
  return request({
    url: '/advent/advent/export',
    method: 'get',
    params: query
  })
}